import {request} from "@/utils/http"


export function getTradeListRes(page:number,limit:number){
    return request.get<any,any>("/admin/product/baseTrademark/"+`${page}/${limit}`)
}

export function addTradeRes(data:any){
    if(data.id){
        return request.put("/admin/product/baseTrademark/update",data)
    }else{
        return request.post("/admin/product/baseTrademark/save",data)
    }
    
}

export function deleteTradeRes(id:number|string){
    return request.delete<any,any>("/admin/product/baseTrademark/remove/"+id)
}